package com.wmcsk.dl.dl;

import android.content.BroadcastReceiver;

import com.wmcsk.dl.dl.internal.DLPluginPackage;
import com.wmcsk.dl.dl.utils.DLConstants;


/**
 * Created by wm on 2016/11/29.
 */

public abstract class DLBroadcastReciver extends BroadcastReceiver implements DLBroadcastPlugin {
    private static final String TAG = DLBroadcastReciver.class.getName();
    private BroadcastReceiver mProxyBroadcastReceiver;
    private DLPluginPackage mPluginPackage;
    protected BroadcastReceiver that = this;
    protected int mFrom = DLConstants.FROM_INTERNAL;

    @Override
    public final void attach(BroadcastReceiver proxyBroadcastReceiver, DLPluginPackage pluginPackage) {
        mProxyBroadcastReceiver = proxyBroadcastReceiver;
        mPluginPackage = pluginPackage;
        that = mProxyBroadcastReceiver;
        mFrom = DLConstants.FROM_EXTERNAL;
    }
}
